<?php
namespace app\m\controller;
class Page extends Base{

    //文章详情
    public function detail(){
        $id = intval($this->get['id']);
        //查询文章
        $detail = $this->db->find('page',$id);
        $this->fetch(['detail'=>$detail]);
    }

}
?>
